package com.zhoug.demo.common.designpattern.clone;

/**
 * 地址
 * @author: zhoug
 * @since: 2025-07-08
 */
public class Address implements DataCloneable<Address> {
    private String county;//国家
    private String province;//省
    private String city;//市
    private String district;//区
    private String address;//详细地址

    @Override
    public Address copy() {
        Address clone = new Address();
        clone.county = county;
        clone.province = province;
        clone.city = city;
        clone.district = district;
        clone.address = address;
        return clone;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }



}
